package com.zmn.oms.third.taobao.msghandler.impl;

import com.taobao.api.internal.tmc.Message;
import com.taobao.api.internal.tmc.MessageStatus;
import com.zmn.oms.third.taobao.TaobaoTmcConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 类描述：
 *
 * @author LiangHailong
 * @date 2019/07/24 17:29
 */
@Component("defaultTmcMsgHandler")
public class DefaultTmcMsgHandler extends TmcMsgHandlerBase {

    private static final Logger logger = LoggerFactory.getLogger(DefaultTmcMsgHandler.class);

    @Override
    public void procMsg(Message message, MessageStatus status) {
        logger.info("【{}-消息-未知】无法处理未知消息（已忽略） Topic:[{}], Content:[{}]", TaobaoTmcConstants.NAME_TMALL, message.getTopic(), message.getContent());
    }
}
